package service.community;

import domain.Community;

import java.util.ArrayList;
import java.util.List;

public interface CommunityService {
    /**
     * 增加社区的服务信息
     * @param community
     * @return boolean
     * @author 荣燊
     * @date 2020/7/14 11:07
     */
    public boolean addCommunity(Community community);

    /**
     * 根据community_id删除社区信息
     * @param community_id
     * @return boolean
     * @author 荣燊
     * @date 2020/7/13 14:54
     */
    public boolean deleteCommunity(int community_id);

    /**
     * 根据community_id修改社区信息
     * @param community_id
     * @return boolean
     * @author 荣燊
     * @date 2020/7/13 14:52
     */
    public boolean modifyCommunity(int community_id, String commnity_name);

    /**
     * 查询所有的社区信息，并显示
     * @param community
     * @return java.util.List<domain.Community>
     * @author 荣燊
     * @date 2020/7/13 14:50
     */
    public List<Community> getCommunityList(Community community);

    /**
     * 根据community_id查询社区信息，并返回boolean类型的值
     * @param community_id
     * @return
     */
    public boolean getCommunityInfo(int community_id);

    /**
     * 获取社区数据条数
     * @return int
     * @author 夏天
     * @date 2020/7/15 14:50
     */
    public int getCont();

    /**
     * 条件筛选社区
     * @param  view_power
     * @return ArrayList
     * @author 夏天
     * @date 2020/7/21 20:32
     */
    public ArrayList<Community> queryCommunity(String view_power);
}
